package com.ctshk.rpc.system.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 组织架构
 * </p>
 *
 * @author 谢诗宏
 * @since 2020-12-22
 */
@Data
@ApiModel(value="SysPermissionReq对象", description="权限请求对象")
public class SysPermissionReq implements Serializable {

    @ApiModelProperty(value = "菜单id,多个逗号分隔", required = true)
    private List<Long> ids;

    @NotNull(message = "对象用户id必填")
    @ApiModelProperty(value = "设置对象用户id", required = true)
    private Long userId;

    @NotNull(message = "当前一级菜单id必填")
    @ApiModelProperty(value = "当前一级菜单id", required = true)
    private Long topId;

    @ApiModelProperty(value = "菜单类型 1 菜单;2 页面;3 按钮")
    private Integer menuType;

}
